package com.hyzx.qbasic.admin.domain.service;

import com.hyzx.qbasic.admin.model.po.CommonAttachmentPO;
import com.hyzx.qbasic.admin.model.po.CommonImagePO;
import com.hyzx.qbasic.admin.model.vo.res.BaseOperationRes;
import com.hyzx.qbasic.admin.model.vo.res.UploadFileResModel;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * Created by 黄江华 on 2018/7/31
 */

public interface ICommonFileService {
    UploadFileResModel uploadFile(String businessId, int priority, MultipartFile multipartFile);

    UploadFileResModel uploadImage(String businessId, int priority, MultipartFile multipartFile);

    BaseOperationRes deleteAttachment(Integer fileId, String businessId);

    BaseOperationRes deleteImage(Integer imageId, String businessId);

    List<CommonAttachmentPO> getAttachmentList(String businessId);

    List<CommonImagePO> getImageList(String businessId);
}
